package internal

import (
	"game-server/msg"
	"reflect"
	//"game-server/game"
	//"fmt"
)

var tmap map[string]int

func init() {
	// 向当前模块（game 模块）注册 Hello 消息的消息处理函数 handleHello
	handler(&msg.Hello{}, handleHello)
}

func handler(m interface{}, h interface{}) {
	skeleton.RegisterChanRPC(reflect.TypeOf(m), h)
}

func handleHello(args []interface{}) {
	//game.ChanRPC.Go("NewAgent",args[0],args[1])
	//fmt.Print("hall ")
}
